import { App } from "vue";
import tooltip from "./tooltip.ts";

//自定义指令
const directives: any = {
  tooltip, // 文本超长省略
};

export default {
  install(app: App) {
    Object.keys(directives).forEach((key) => {
      app.directive(key, directives[key]);
    });
  },
};
